#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "PWM.h"
#include "Key.h"
#include "IC.h"
#include "OLED.h"

int main(void)
{
	PWM_Init();
	IC_Init();
	OLED_Init();
	
	OLED_ShowString(1,1,"Freq:00000Hz");
	PWM_SetPrescaler(72-1);
	PWM_SetCompare3(500);
	while(1)
	{
		OLED_ShowNum(1,6,IC_GetFreq(),5);
	}
}


